Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 5 - Printing Functions for Message Overrides / Printing Functions Reference
Functions / Managing Paper Trays


GXSetTrayPaperType

You can use the GXSetTrayPaperType function to change the paper-type information for a specific paper tray on the printer.

OSErr GXSetTrayPaperType (gxTrayIndex whichTray,
                           gxPaperType paper);
whichTray
The number of the tray for which you are changing the paper-type information.
paper
A reference to a paper-type object that contains information about the paper that is in the specified tray. If you specify nil as the value of this parameter, the tray becomes unconfigured.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
The GXSetTrayPaperType function modifies the paper-type information that is associated with the specified tray on the printer. The information that you supply in the paper parameter is stored with the desktop printer and is used to facilitate the handling of mismatched paper types on the printer.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
gxPaperTypeNotFoundThe specified paper type could not be found.
gxNoSuchPTGroupThe specified paper type could not be found.
SEE ALSO
You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help